using System;

namespace T0075WaterAlert
{
    /// <summary>
    /// the Alarm
    /// </summary>
    /// <param name="param"></param>
    public class Alarm
    {
        public Alarm(Heater heater)
        {
            heater.alarmEvent += MakeAlert;
        }    
        //alert alarm
        private void MakeAlert(int param)
        {
            Console.WriteLine("Alarm:Wryyyyyyyy!!!!!!Heat:{0}!",param);
        }
    }
}